﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Web.Configuration;
using System.ServiceModel;
using BookClubIt.Processor;
using DTO = BookClubIt.DTO;


namespace BookClubIt
{
    public partial class meetingdetail : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindData();
            }
        }

        private void BindData()
        {
            int mid = 0;
            int.TryParse(Request.QueryString["mid"], out mid);

            DTO.Meeting meeting = BookClubProcessorInstance.GetMeetingById(mid);

            lblMeetingTitle.Text = meeting.Title;
            lblStreet.Text = meeting.Street;
            lblCity.Text = meeting.City;
            lblState.Text = meeting.State;
            lblZipcode.Text = meeting.Zipcode;

            Page.Title = meeting.Title + " | bookclubit.com";

         
           
           
        }
    }
}